// 获取任务栏高度
const getSystemBarHeight = () => {
    return;
    console.log("获取任务栏高度，是否支持沉浸式状态栏：", plus.navigator.isImmersedStatusbar())
    let height = 0;
    let isImmer = plus.navigator.isImmersedStatusbar();//是否支持沉浸式  true/false
    if (isImmer) {
        height = plus.navigator.getStatusbarHeight();
    } else {
        height = 0;
    }
    console.log("状态栏高度：", height)
    return height;
}

// 传入元素和高度，设置paddong-top
const setPageTopBarHeight = ({
    dom = null,
    height = 0,
    textColor = 'dark'  //or "light"
}) => {
    return;
    console.log("接收到的dom元素", dom)
    dom.style.paddingTop = `${height}px`
    plus.navigator.setStatusBarStyle(textColor);//设置前景色
}

export {
    getSystemBarHeight,
    setPageTopBarHeight
}